using Blog.Core.Entities;
using FluentNHibernate.Mapping;

namespace Blog.Infrastructure.Mappings
{
    public class ArticleMap : ClassMap<Article>
    {
        public ArticleMap()
        {
            Id(x => x.Id).GeneratedBy.Identity();
            Map(x => x.Content).Length(10000);
            Map(x => x.Date);
            Map(x => x.Title);
            Map(x => x.Views);
            Map(x => x.Categories);

        }
    }
}